package org.zhao.nettydemos.lab04;

/**
 * @Auther: xiaohui.zhao
 * @Date: 2021/9/17 15:07
 * @Description: 异步任务测试类
 */
public class TaskCallableTest {

    public static void main(String[] args) {
        TaskCallable<TaskResult> taskCallable = new TaskHandler();

        TaskExecutor taskExecutor = new TaskExecutor(taskCallable,"测试回调任务");
        new Thread(taskExecutor).start();
    }

}